import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)
const routes = [
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/login.vue')
  },
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/forgetpassword',
    name: 'forgetpassword',
    component: () => import('../views/forget.vue')
  },
  {
    path: '/regist',
    name: 'regist',
    component: () => import('../views/regist.vue')
  }

]

const router = new VueRouter({
  routes
})

export default router
